package com.example.demo.repository.two;

import com.example.demo.entity.two.DeviceItemData;
import com.example.demo.entity.two.DeviceItemZiDian;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.transaction.annotation.Transactional;

/**
 * Created by pengwan on 2017/6/25.
 */
public interface DeviceItemDataRepository extends JpaRepository<DeviceItemData, Long> {
    @Query("select d from DeviceItemData  d where d.deviceitem_id=?1 and d.devicepage_id=?2")
    DeviceItemData withItemidAndPageid(int itemid,int pageid);
}
